<?php

define(APP_PATH,"d:/collect_new");
include(APP_PATH."/config.php");
require_once(APP_PATH . "/collect/Common/yzs1013_pldr.php");
require_once(APP_PATH."/collect/reset/t.class.php");
$t=new t($config[DB_HOST],$config[DB_USER],$config[DB_PWD]);
$url=urldecode(str_replace("DIAN",".",str_replace("___","%",$_GET['s'])));
$cookie=urldecode($_GET['cookie']);
$host=host($url);
$data=array();
$data[host]=$host;
$t->rk("longzs_re","cookie","host='$host'",array("insert"=>1),$data);
echo $data[host]."的cookie已经设为:<br>".$cookie;
if(!preg_match("/collect6\./i",$_SERVER['SERVER_NAME'])){
    echo "<iframe style=\"display:none\" src=\"http://collect6.longsunhd.com/collect/js/getcookie.php?s=".$_GET['s']."&cookie=".$_GET['cookie']."\"></iframe>";
}
/*收集cookie的href: javascript:(function(a,b,c,d){a[c]?a[c].ui.show():(d=b.createElement('script'),d.id='yqjkjs',d.setAttribute('charset','utf-8'),d.src='http://collect1.longsunhd.com/collect/js/getcookie.js?'+Math.floor(+new%20Date/1e7),b.body.appendChild(d))})(window,document,'yqjkjs');
如果 HTTPS 页面中包含非加密的 HTTP 内容，浏览器会在控制台输出警告，记录 Mixed Active Content 请求。而从 Firefox 23 开始，浏览器会默认阻止 HTTPS 页面中可能影响网页安全的 HTTP 请求（即阻止 Mixed Active Content）。这样做会牺牲一些网站的兼容性，但对安全性的提高是很有帮助的
about:config
security.mixed_content
设置
security.mixed_content.block_display_content:true
security.mixed_content.block_active_content:false
其次还要允许弹出窗口
*/
?>

